package com.xunfang.log;

import com.xunfang.bean.vo.PageVo;
import com.xunfang.common.Result;
import com.xunfang.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author yellow Docter
 * @date 2023 -11-13
 * @desc
 */
@RestController
@RequestMapping("log")
public class LogController {

    @Autowired
    private LogService logService;

    @GetMapping("/list/{currentPage}/{pageSize}")
    public Result findHouse(@PathVariable Integer currentPage, @PathVariable Integer pageSize){
        PageVo pageVo = logService.findLogs(currentPage, pageSize);
        return Result.ok(pageVo);
    }

}
